package com.example.springboot_study.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author : liqun
 * @createTime : 2021/8/30 16:38
 */
@Component
//@PropertySource(value = "classpath:application.properties",encoding = "UTF-8")
@Data
public class BlogProperties {
    @Value("${xdd.diy.name}")
    private String name;
    @Value("${xdd.diy.title}")
    private String title;
    @Value("${xdd.diy.desc}")
    private String desc;
    @Value("${xdd.diy.test1}")
    private Integer number;
    @Value(("${xdd.diy.value}"))
    private String value;

}
